<template>
  <div class="app-container">
    <el-card> menu 2 </el-card>
  </div>
</template>
<script lang="ts" setup>
  let a=100;
  function print(fn) {
    let a=200;
    fn()
  }

  function fn(){
    console.log(a)
    const result1=Boolean(0);//false
    const result2=Boolean(NaN);//false
    const result3=Boolean('null');//true
    const result4=String([1,2]);//1,2
    const result5=String({});//['object','object']
    const result6=Number([]);//0
    const result7=Number([1,2]);//NaN
    const result8=Number([1]);//1
    console.log({result1,result2,result3,result4,result5,result6,result7,result8})
  }
  print(fn)

</script>
